package com.android.mangalib.object;

import java.util.ArrayList;
import java.util.List;

public class Collection {

	private String author;
	
	private String title;

	private List<Tome> listTome;
	
	public Collection(String author, String title) {
		super();
		this.author = author;
		this.title = title;
		listTome = new ArrayList<Tome>();
	}
	
	public Collection(String title) {
		super();
		this.title = title;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public List<Tome> getListTome() {
		return listTome;
	}

	public void setListTome(List<Tome> listTome) {
		this.listTome = listTome;
	}
	
	public int getTomeCount(){
		
		return this.listTome.size();	
		
	}

	@Override
	public String toString() {
		return "Collection [author=" + author + ", title=" + title
				+ ", listTome=" + listTome + "]";
	}
	

	
}
